<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="dk.soegaard.simpleuddibrowser.GetDetailHandler"%>
<%@page import="java.io.BufferedOutputStream"%>
<%@page import="java.io.OutputStream"%>
<%@page import="java.io.ByteArrayInputStream"%>
<%@page import="java.io.ByteArrayOutputStream"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>


<%
	String uddiId = request.getParameter( "uddiid" );
	String type = request.getParameter("type");
%>

Getting the type <%=type%>
<br/>
Getting the uddiId: <%=uddiId%>
<br/>

<%

	if (type != null && uddiId != null) {
		GetDetailHandler handler = new GetDetailHandler();
		if (type.equalsIgnoreCase("business")) {		
			handler.getBusinessDetail(uddiId, response.getOutputStream());
		}
		else if (type.equalsIgnoreCase("service")) {
			handler.getServiceDetail(uddiId, response.getOutputStream());			
		}
		else if (type.equalsIgnoreCase("binding")) {
			handler.getBindingDetail(uddiId, response.getOutputStream());
		}
		else if (type.equalsIgnoreCase("tmodel")) {
			handler.getTModelDetail(uddiId, response.getOutputStream());
		}
	}
%>



</body>
</html>